@import "../css/var";

.select {
  position: relative;
  display: inline-block;
}

.input-wrapper {
  width: 100%;
}

.more-icon {
  font-family: "iconfont-common";
  width: 0.3rem;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  pointer-events: none;
}

i.rotate180 {
  transform: rotate(180deg);
  transition: all 0.2s;
}

.select-list {
  position: absolute;
  /*top: 120%;*/
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  border: $border;
  padding: 0.05rem 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .2);
  background: #fff;
  border-radius: 0.05rem;
  z-index: 2;
  max-height: 2.65rem;
}

.select-list > ul {
  max-height: 2.5rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.select-list::after {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  top: -5px;
  left: 0.25rem;
  border-bottom: 5px solid #fff;
  border-left: 5px solid rgba(0, 0, 0, 0);
  border-right: 5px solid rgba(0, 0, 0, 0);
}

.select-list::before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  top: -6px;
  left: 0.25rem;
  border-bottom: 5px solid #ccc;
  border-left: 5px solid rgba(0, 0, 0, 0);
  border-right: 5px solid rgba(0, 0, 0, 0);
}

.select-list li {
  height: 0.35rem;
  line-height: 0.35rem;
  padding: 0 0.1rem;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: $black;
}

.select-list li.empty {
  color: $gray;
}

.select-list li.small {
  height: 0.33rem;
  line-height: 0.33rem;
}

.select-list li.mini {
  height: 0.3rem;
  line-height: 0.3rem;
}

.select-list li:active {
  background: $bg;
}

.select-list .active {
  color: $primary;
}

.active.green {
  color: $green;
}

.active.red {
  color: $red;
}

.active.orange {
  color: $orange;
}

.active.blue {
  color: $blue;
}
